﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using LibGreen.Protocol.IRC.Utility;

namespace LibGreen.Protocol.IRC.Dialogs
{
	internal class Login
	{
		
		internal Login (Session parent, string userName, string nickName, string password)
		{
			var packetPass = new ClientCommand (Commands.Pass, password);
			var packetNick = new ClientCommand (Commands.Nick, nickName);
			var packetUser = new ClientCommand (Commands.User,
												userName,
												"blankBlank",
												parent.Server,
												"green");
			parent.con.SendMessage (packetPass);
			parent.con.SendMessage (packetNick);
			parent.con.SendMessage (packetUser);
		}
	}
}
